package com.hyfrogx.modules.manage.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.manage.dao.video.HyVideoTypeDao;
import com.hyfrogx.modules.manage.entity.video.HyVideoTypeEntity;
import com.hyfrogx.modules.manage.service.HyVideoTypeService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName HyVideoTypeServiceImpl
 * @Description TODO
 * @Author yangjun
 * @date 2019/12/5 13:52
 * @Version 1.0
 **/
@Service
public class HyVideoTypeServiceImpl extends ServiceImpl<HyVideoTypeDao, HyVideoTypeEntity> implements HyVideoTypeService {
    @Override
    public IPage getVideoTypeByConditions(QueryExt queryExt) {
        Map map=new HashMap();
        map.putAll(queryExt.getCondition());
        queryExt.setRecords(this.baseMapper.getVideoTypeByConditions(queryExt,map));
        return queryExt;
    }
}
